﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsTest.SysManager
{
    public partial class LogManager : MainTabUserContorl
    {
        string[][] initData = new string[][] { new string[] { "谢鹏", "2012-02-02 09:30", "登陆", "" }, new string[] { "谢鹏", "2012-02-02 09:30", "新增用户", "新增了用户" }, new string[] { "谢鹏", "2012-02-02 10:30", "退出登陆", "退出登陆" }, new string[] { "陈静", "2012-02-02 10:30", "登陆","" } };
        public LogManager()
        {
            InitializeComponent();

            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }

            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            UserDialog u = new UserDialog();
            u.ShowDialog();
        }
    }
}
